<?php

class Core_Frontend_Module_Friendlink_Latest extends Dcmp_Module_Base {

    protected $name = 'friendlink_latest';
    public function install() {

    }

    public function uninstall() {

    }

    public function buildConfig($form) {
        
    }

    public function render() {
        $friendlinks = App::getModel('promotion/collection_friendlink')->filterByStatus('published')->load();
        $tmpl = $this->getTemplate()->assignMulti(array('friendlinks' => $friendlinks,'parameters'=>$this->getParameters()));
        return $tmpl->render($this->getTemplatePath($this->getValueByKey('template_name'),$this->getValueByKey('template_script')));
    }

}

